package com.zzz.common.core.constants;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.common.core.constants
 * @Author: zhai
 * @CreateTime: 2025-10-11  16:53
 * @Description: TODO 定义redis缓存的常量值
 * @Version: 1.0
 */
public class CacheConstants {
    // 登录用户 redis key
    public static final String LOGIN_TOKEN_KEY = "logintoken:";
    // 缓存有效期，默认30天
    public static final Long EXPIRE_TIME = 720L;
    // 延长时间
    public static final Long REFRESH_TIME = 180L;
    // 手机验证码 redis key
    public static final String  PHONE_CODE_KEY = "p:c"; // phoneCode:
    // 邮箱验证码 redis key
    public static final String  EMAIL_CODE_KEY = "e:c"; // emailCode:
    // 记录当天的验证码 code_time redis key
    public static final String  CODE_TIME_KEY = "c:t";
    // 表示未完赛
    public static final String  EXAM_UNFINISHED_LIST = "e:t:l";
    // 表示已经结束并且为历史竞赛
    public static final String  EXAM_HISTORY_LIST = "e:h:l";
    // 竞赛题目列表
    public static final String EXAM_QUESTION_LIST = "e:q:l";
    // 存储用户竞赛排名列表
    public static final String EXAM_RANK_LIST = "e:r:l";
    // 存储用户竞赛列表
    public static final String USER_EXAM_LIST = "u:e:l";
    // 存储竞赛基本信息
    public static final String  EXAM_DETAIL = "e:d:"; // e:d:examId
}
